<?php

/*
 * This file is part of the prestaBreadcrumb package.
 * (c) Julien Fusco <jfusco@prestaconcept.net>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * presta breadcrumb item
 * 
 * @author	Julien Fusco <jfusco@prestaconcept.net>
 * @version	SVN: $Id: $ 1.0 - 7 déc. 2009 - Julien Fusco <jfusco@prestaconcept.net>
 * @since	7 déc. 2009 - Julien Fusco <jfusco@prestaconcept.net>
 */
class prestaBreadcrumbItem
{
	protected $text;
	protected $uri;
	
	/**
	 * Constructor
	 * 
	 * @author 	Julien Fusco
	 * @since 	7 déc. 2009
	 * @version 1.0 - 7 déc. 2009 - Julien Fusco
	 *
	 * @param 	string $text
	 * @param 	string $uri
	 */
	public function __construct($text, $uri = null)
	{
		$this->text = $text;
		$this->uri	= $uri;
	}
	
	/**
	 * Retrieve the uri of the item
	 * 
	 * @author 	Julien Fusco
	 * @since 	7 déc. 2009
	 * @version 1.0 - 7 déc. 2009 - Julien Fusco
	 *
	 * @return 	string
	 */
	public function getUri()
	{
		return $this->uri;
	}
	
	/**
	 * Retrieve the text of the item
	 * 
	 * @author 	Julien Fusco
	 * @since 	7 déc. 2009
	 * @version 1.0 - 7 déc. 2009 - Julien Fusco
	 *
	 * @return 	string
	 */
	public function getText()
	{
		return $this->text;
	}
}
